package com.leakey.ddt;

/**
 * 指引类
 * @author Leakey
 * @version
 * @since JDK1.6
 */
public class Guide {
	/** 打法的名称. */
	private String name;
	/** 角度. */
	private String angle;
	/** 力度. */
	private String dynamic;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAngle() {
		return angle;
	}

	public void setAngle(String anle) {
		this.angle = anle;
	}

	public String getDynamic() {
		return dynamic;
	}

	public void setDynamic(String dynamic) {
		this.dynamic = dynamic;
	}
	

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((angle == null) ? 0 : angle.hashCode());
		result = prime * result + ((dynamic == null) ? 0 : dynamic.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Guide other = (Guide) obj;
		if (angle == null) {
			if (other.angle != null)
				return false;
		} else if (!angle.equals(other.angle))
			return false;
		if (dynamic == null) {
			if (other.dynamic != null)
				return false;
		} else if (!dynamic.equals(other.dynamic))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return name + "  " + "角度：" + angle + " 力度：" + dynamic;
	}
	
	public Guide(String name, String angle, String dynamic) {
		super();
		this.name = name;
		this.angle = angle;
		this.dynamic = dynamic;
	}

	public Guide() {
		super();
	}
}
